
from whiff import tester
from runtest import application

testapp = application()

captureTestapp = tester.CaptureTestCase(testapp, "./captures/capture.txt", True)

if __name__=="__main__":
    import wsgiref.simple_server
    print "serving wsgi at 8888 capturing to ./capture"
    srv = wsgiref.simple_server.make_server('localhost', 8888, captureTestapp)
    srv.serve_forever()
                    
